package com.cc.mall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("商品分类")
public class CatalogVo {
    @ApiModelProperty("商品分类id")
    private Long id;
    @ApiModelProperty("商品分类名称")
    private String name;
    @ApiModelProperty("二级分类")
    private List<CatalogVo> children = new ArrayList<>();
}
